package mc.support.taobao.api;

import com.taobao.api.TaobaoRequest;
import com.taobao.api.request.TmcUserPermitRequest;
import com.taobao.api.response.TmcUserPermitResponse;

/**
 *@Author:kane
 *@Date:2014年4月14日
 *
 */
public class MsgUserPermitReq extends
		AbstractReq<MsgUserPermitReq, TmcUserPermitResponse> {

	private String topics = "taobao_item_ItemDownshelf,"
			+ "taobao_item_ItemUpshelf," + "taobao_item_ItemRecommendAdd,"
			+ "taobao_item_ItemRecommendDelete," + "taobao_item_ItemUpdate,"
			+ "taobao_item_ItemDelete";

	public String getTopics() {
		return topics;
	}

	public MsgUserPermitReq setTopics(String topics) {
		this.topics = topics;
		return this;
	}

	@Override
	protected TaobaoRequest toRequest() {
		TmcUserPermitRequest req = new TmcUserPermitRequest();
		if (null != topics) {
			req.setTopics(topics);
		}
		return req;
	}

}
